import request from '@/utils/request'

// 查询资料资源个人库列表
export function listZT(query) {
  return request({
    url: '/archive/special/subject',
    method: 'get',
    params: query
  })
}

// 查询资料资源个人库详细
export function getZT(ID) {
  return request({
    url: '/archive/special/subject/' + ID,
    method: 'get'
  })
}

// 新增资料资源个人库
export function addZT(data) {
  return request({
    url: '/archive/special/subject',
    method: 'post',
    data: data
  })
}

// 修改资料资源个人库
export function updateZT(data) {
  return request({
    url: '/archive/special/subject',
    method: 'put',
    data: data
  })
}

// 删除资料资源个人库
export function delZT(ID) {
  return request({
    url: '/archive/special/subject/' + ID,
    method: 'delete'
  })
}
